
<script th:inline="javascript">
	/*<![CDATA[*/

	function del(event, element) {
		event.preventDefault();
		bootbox.confirm("您确定删除吗?", function(result) {
			if (result) {
				var _id = $(element).attr("href").split("_")[0];
				BOSS.remoteCall('admin/user/userRank/delete/', $('#div_userRank_grid'),{id : _id});
			}
		});
	}

	/*]]>*/
</script>
<form role="form" th:action="@{/admin/user/userRank/saveRank}"
	id="rank_check" name="theForm" th:object="${userRank}" method="post"
	class="form-horizontal">
	<table
		class="table table-striped table-bordered  table-advance table-hover"
		id="users_grid">
		<thead>
			<tr>
				<th style="text-align: center;">组头衔</th>
				<th style="text-align: center;">经验值介于</th>
				<th style="text-align: center;">星星数</th>
				<th style="text-align: center;">操作</th>
			</tr>
		</thead>
		<tbody>
			<tr class="odd gradeX" th:each="data : ${userRank.userRankList}">
				<td style="display: none"><input tyle="text-align: center;"
					type="text" th:name="|userRankList[${dataStat.index}].id|"
					th:value="|${data.id}|" MaxLength='10' /></td>
				<td style="text-align: center;"><input
					tyle="text-align: center;" type="text"
					th:name="|userRankList[${dataStat.index}].name|"
					th:value="|${data.name}|" MaxLength='10' /></td>

				<td style="text-align: center;"><span><input
						style="text-align: center;" type="text"
						th:name="|userRankList[${dataStat.index}].experienceMix|"
						th:value="|${data.experienceMix}|" /> </span> ~<span> <input
						style="text-align: center;" type="text"
						th:name="|userRankList[${dataStat.index}].experienceMax|"
						th:value="|${data.experienceMax}|" /></span></td>

				<td style="text-align: center;"><input
					style="text-align: center;" type="text"
					th:name="|userRankList[${dataStat.index}].star|"
					th:value="|${data.star}|" MaxLength='10' /></td>

				<td><a href=""
					th:href="@{'/admin/user/userRank/edit/'+${data.id}}"
					class="btn default btn-xs purple"><i class="fa fa-edit"></i>修改</a>|
					<a href="#"
					th:href="${data.id}+'_'"
					th:attr="id=${'link_delete_'+dataStat.index},name=${'link_delete_'+dataStat.index}"
					class="btn default btn-xs purple" onclick="del(event,this);"><i
						class="fa fa-minus"></i>移除</a></td>
			</tr>
		</tbody>
	</table>
	<div class="form-actions fluid">
		<div class="col-md-offset-3 col-md-9">
			<button type="submit" class="btn blue" name="sub">保存修改内容</button>
		</div>
	</div>
</form>